package com.test.mall.auth.feign;

import com.test.common.utils.R;
import com.test.mall.auth.vo.SocialUser;
import com.test.mall.auth.vo.UserLoginVo;
import com.test.mall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("member")
public interface MemberFeignService {

    @GetMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    @GetMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);

    @GetMapping("/member/member//oauth2/login")
    public R oauthLogin(@RequestBody SocialUser socialUser);
}
